package com.common.model.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 描述：
 * 排序查询
 * @author xianggj
 * @Date 2021/11/20 16:41
 **/
@Data
@Accessors(chain = true)
@ApiModel(description = "排序条件")
@NoArgsConstructor
@AllArgsConstructor
public class Order {

    /**
     * 正排序规则
     */
    @ApiModelProperty(value = "排序字段")
    private String orderField;

    /**
     * 正排序规则
     */
    @ApiModelProperty(value = "升降序", notes = "true为升序，默认false")
    private Boolean asc;

}
